﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace myShop
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            FMSHOP myForm = new FMSHOP();
            myForm.iAction = args.Length;
            if (args.Length == 2)
            {
                myForm.stablename = args[0].ToString();
                myForm.sBusidate1 = args[1].ToString();
                myForm.sBusidate2 = args[1].ToString();
            }

            if (args.Length == 3)
            {
                myForm.stablename = args[0].ToString();
                myForm.sBusidate1 = args[1].ToString();
                myForm.sBusidate2 = args[2].ToString();
            }
            if (args.Length > 0)
            {
                myForm.WindowState = FormWindowState.Minimized;
            }
            Application.Run(myForm);
        }
    }
}
